package cn.novel.bm.domain.novel;

import io.swagger.annotations.ApiModel;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.Type;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import java.util.UUID;

@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "小说解析格式")
public class NovelSetting {
    @Id
    @Type(type = "org.hibernate.type.PostgresUUIDType")
    private UUID settingId;
    private Integer episodeWordsMax;
    private Integer episodeWordsMin;
    private Boolean chapterHasPrefix;
    private String chapterPrefix;
    private Integer chapterNoFormat;

    @OneToOne
    private Novel novel;
}
